package com.controller;

import com.service.C_inforService;
import com.service.P_inforService;
import com.service.P_recoredService;
import com.util.C_infor;
import com.util.P_infor;
import com.util.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class C_inforController {
    @Resource
    private C_inforService c_inforService;

    @GetMapping("/see_company_infor")
    @ResponseBody
    public C_infor See_company_infor(@RequestParam String pId){
        return c_inforService.see(pId);
    }
    @RequestMapping("/change_company")
    public Result<?> ChangeInfor(@RequestBody C_infor c_infor){
        return c_inforService.changInfor(c_infor);
    }
}
